var wall = $('wall');


wall.onclick = function(){

	if(ready == 'no'){
		alert('正在执行动画，请稍候！');
		return;
	}

	var  x1,y1,cx,xy, temp = 5;
	while(temp != 0){
		x1 = Math.floor(Math.random()*10);
		y1 = Math.floor(Math.random()*10);
		if(map[x1][y1] != 3 && map[x1][y1] != 0 && map[x1][y1] != 4 ){
			map[x1][y1] = 0;
			ctx1.fillStyle = '#49777e';
			ctx1.fillRect((y1+1)*50, (x1+1)*50, 50, 50);
			temp--;
		}
	}
};